<!--
 * @Descripttion:
 * @version:
 * @Author: 周子尧
 * @Date: 2021-02-02 14:51:38
 * @LastEditors: 周子尧
 * @LastEditTime: 2021-02-02 15:44:21
-->
<template>
  <i v-if="value.includes('el-icon-')||value.includes('iconfont')||value.includes('fa ')" :class="value" />
  <svg-icon v-else :icon-class="value.replace('svg ','')" />
</template>
<script>
import SvgIcon from '@/components/SvgIcon'
export default {
  name: 'Icon',
  components: {
    SvgIcon
  },
  props: {
    value: {
      type: String,
      default: ''
    }
  }
}
</script>
